Skip to content

Issue 3148 #4628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Issue 3148 #4628

wants to merge 3 commits into from

Conversation

nikomatsakis
Copy link
Contributor

Fix issue #3148, which is that the lifetimes of borrowed pointers are sometimes inferred to be too small. Also fix the borrow checker's treatment of vec patterns, which was completely absent.

Finally, add an option to tidy so you can leave "// WARN" comments in your code that will be printed out. This is useful for putting notes to yourself of things that are not done.

r? @catamorphism

contents of other borrowed pointers to the lifetimes of the
borrowed value.  Fixes rust-lang#3148.
The tail portion of the pattern effectively borrows a vector,
but the borrow checker knew nothing about this.
for notating FIXME-style-situations that you want to be reminded
of before you commit.
@catamorphism
Copy link
Contributor

r+ but I pointed out a few places in the comments in 01bf87e where they could be clearer. I appreciate all the comments, and want to make sure they're as useful as possible!

@nikomatsakis
Copy link
Contributor Author

ok, thanks for the suggestions tim.

@nikomatsakis
Copy link
Contributor Author

Pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants